<template>
  <div>
    <p>打开控制台</p>
    <p>查看</p>
  </div>
</template>

<script>
// 导入你的 JS 文件
import { batchGenerateRowcases } from '@/assets/arrList';
import { generateAllCombinations } from '@/assets/allCombination'
import { judge } from '@/assets/judge'

export default {
  name: 'MyComponent',
  mounted() {
    // 调用 batchGenerateRowcases 函数并打印结果
    const n = 5;
    const bases = [[1], [5], [1,1,1], [5], [1]];
    const rules = [[3], [1,1], [5], [1,1], [3]]

    // 直接将 n 和 bases 作为参数传递给 batchGenerateRowcases
    let rowcases = batchGenerateRowcases(n, bases); // 修改传递方式

    let acm = generateAllCombinations(rowcases)
    let validMatrices = judge.checkMultipleMatrices(acm, rules);
    console.log(validMatrices)
    
  },
  methods: {
  
  }
}
</script>

<style scoped>
/* 你可以在这里添加样式 */
</style>


